home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 1 / BBS in a box - Trilogy I.iso / Files / Publish / T / TextMangler 2.1.2 ƒ / TextMangler - Read Me < prev    next >
Encoding:
Text File  |  1992-06-02  |  9.6 KB  |  136 lines  |  [TEXT/ttxt]

  1. TextMangler™ Information:
  2.  
  3. A Mac Plus or better is recommended to use this program. You should have enough RAM to be able to allocate about one megabyte to TextMangler, although it will run with less. For example, mangling this Read Me file only uses a total of about 250K of RAM.
  4.  
  5. TextMangler will read in the text file you select and produce a "mangled" version of it. The algorithm it uses is conceptually simple: the original text is analyzed statistically to produce a table (Markov table) containing all two-word pairs and the percent occurrence of each single word following each pair in the text. Then a "mangled" sequence (Markov chain) is generated by starting with a word pair and choosing a third word based on the probability of that third word following the pair in the original text. Then the second word of the starting pair and the chosen third word become the next word pair, and text is built up by repeating this process until the end is reached.
  6.  
  7. If the original text file is big enough the resulting Markov chain is a wild transposition of text that contains readable material but is full of non sequiturs. The output can be hilarious. Once the table is built you can run the mangling process several times and save the best results.
  8.  
  9. The input text should be at least two or three pages in length. It's good if the text covers more than one subject area, so that the mangling process can interweave the topics. This can be done easily by opening several files in sequence, adding each table generated to the old one. The total size of the table you can build depends on the amount of RAM you have. If you run out of memory, try increasing the memory allocated to TextMangler by choosing 'Get Info...' in the Finder when the TextMangler icon is highlighted and changing the number at the bottom of the Get Info box to a higher one.  Allocating one or two megabytes is enough for a good-sized table.  Of course, you must quit TextMangler to change the memory allocation. Quitting destroys the Markov table and at present there is no way to save it. Later versions may have this capability.
  10.  
  11.  
  12. Detailed Mangling Instructions:
  13.  
  14. First select a text file to mangle. A text file is one saved as "Text Only" by a word processor.  (Some word processors, like TeachText, will only produce text files.) When TextMangler is first opened, clicking the "Do It" button or pressing the Return key will allow you to select a text file and generate a Markov table.  To build up a large table from several text files, select the 'Add to Table' button and then Do It. In general the larger the table the more interesting the results.
  15.  
  16. When the table is built, click on the 'Mangle!' button and then the 'Do It' button to start mangling. You can adjust the maximum length of the output by using the 'Text Length' command in the Options menu.
  17.  
  18. Saving the output creates a TeachText® file (TeachText is a registered trademark of Apple Computer, Inc.) which can be opened in any word processor.
  19.  
  20. For more help, select the 'About...' item under the apple menu in the TextMangler application.
  21.  
  22.  
  23. Character Frequencies:
  24.  
  25. You can use TextMangler to produce a table of character frequencies for any data file. This has nothing to do with the mangling process; I just thought it would be fun to do. Also, it is useful if you need to solve simple substitution ciphers. Unfortunately, those ciphers went out of fashion centuries ago. 
  26.  
  27.  
  28. Options:
  29.  
  30. The Option menu allows you to do various things, like open non-text files or chose a specific word pair to start mangling from. More information is contained in TextMangler's "About..." box.
  31.  
  32.  
  33. Key Equivalents:
  34.  
  35. There are a number of key equivalents for mouse clicks in TextMangler. For example, you can use the up and down arrow keys to select the radio buttons in the main dialog, while the right and left arrow keys select the text window and main dialog window, respectively.
  36.  
  37.  
  38. References:
  39.  
  40. The June 1989 and January 1990 Scientific American "Computer Recreations" columns and the January-March 1992 issue of Algorithm (volume three, number one) have additional information about the algorithm TextMangler uses. This type of algorithm was used in a program called "Mark V. Chaney" (a pun on "Markov chaining") to take messages posted on a "singles" section of a computer bulletin board and mangle them to produce a side-splitting hodgepodge. The mangled text was then re-uploaded as a message from Mark V. Chaney. Some people were amused; some people were upset. If I were you I'd check with the bulletin board owners before using this program in that way.
  41.  
  42.  
  43. Caution:
  44.  
  45. Don't expect TextMangler to produce incredibly humorous output from just any input file. Also, you may have to mangle several times before you get optimally funny results. Sometimes the mangling process gets into a "loop" and repeats itself; this can happen with any length file. Finally, I cannot be held responsible for injuries suffered as a result of anyone falling out of their chair because of laughing too hard at TextMangler's output.
  46.  
  47.  
  48. Plea for Money:
  49.  
  50. TextMangler™ is distributed as shareware. Try it out, and if you like it and keep it, send in your $10.00 (the address is in TextMangler's "About..." box). I'll keep you informed about updates and other interesting programs.
  51.  
  52.  
  53. Gratuitous Addenda:
  54.  
  55. Since this is a text file, I have a suspicion that someone will try mangling it. I don't mind. In fact, here are three tidbits to make it more interesting. The first is an excerpt from Douglas Adam's new book "Last Chance to See...". Douglas Adams is also the author of "The Hitchhiker's Guide to the Galaxy". The second is an excerpt from the 'singles' section of a national bulletin board, and the last one is from the introduction of a college chemistry text.
  56.      
  57.      "Last Chance," written with zoologist Mark
  58. Carwardine, is a look at six near-extinct species of
  59. animals and the people trying to save them.
  60.      
  61.      On Komodo dragons, for example:
  62.      
  63.             "...When a dragon attacks a horse or a
  64.      buffalo, it doesn't necessarily expect to kill it
  65.      there and then. If it gets involved in a fight it
  66.      might get injured, and there's no benefit in that,
  67.      so sometimes the dragon will just bite it and walk
  68.      away. But the bacteria that live in a dragon's
  69.      saliva are so virulent that the wounds will not
  70.      heal and the animal will usually die in a few days
  71.      of septicemia, whereupon the dragon can eat it at
  72.      leisure. Or another dragon can eat it if it
  73.      happens to find it first.... It's good for the
  74.      species that there is a regular supply of badly
  75.      injured and dying animals about the place.
  76.             "There was a well-known case of a Frenchman
  77.      who was bitten by a dragon and eventually died in
  78.      Paris two years later. The wound festered and
  79.      would just never heal. Unfortunately there were no
  80.      dragons in Paris to take advantage of it so the
  81.      strategy broke down on that occasion, but
  82.      generally it works well."
  83.  
  84.  
  85.  
  86.     I've been thinking further about your comments
  87.      regarding what you see in the ads from women 
  88.     who want the "successful yuppie" type.  I suspect,
  89.      although I can't be certain, that this may be
  90.      coming from women who have never been married. 
  91.      A number of women I know who are over 30 and 
  92.     never been married seem to be waiting for their
  93.      vision of a "prince" to carry them off into the 
  94.     sunset.  What they don't realize is that there are a 
  95.     LOT of princes out there, and they don't all wear 
  96.     3-piece suits.  I was married to one of the "yuppie
  97.      princes" and the "yuppie" part did nothing to 
  98.     enhance our relationship. So, I guess what I'm 
  99.     saying is -- if they truly are holding out for this 
  100.     image of perfection they seem to have, they're 
  101.     probably going to wait a long time. It's their
  102.     loss, really.  That's kind of how I feel about the 
  103.     guys who are only interested in the young babes.
  104.  
  105.     Yeah, they say you have to kiss a lot of frogs 
  106.     before you find your prince... But sometimes you 
  107.     kiss a prince(ss) and end up with a frog...
  108.  
  109.  
  110. Look around you. That's how chemistry began — in the limitless curiosity of
  111. human beings about their surroundings. Possibly you are sitting at your desk
  112. with some paper and a wooden pencil or a plastic pen at hand to take notes.
  113. Maybe there are some metal paper clips and a pottery coffee cup or a glass
  114. soft-drink bottle or an aluminum can on your desk. What could you do to
  115. investigate the materials in your paper, your pencil or pen, the paper clips,
  116. the cup, the bottle, or the can? Scratch them. Which is harder? Put a drop of
  117. water, or alcohol, or acid on each one. What happens? Weigh pieces of equal
  118. size. Which is heavier? Try to burn a small piece of each. Which ones burn?
  119. What is left afterwards?  You could work your way around your room cataloging
  120. how everything in it responds to these and other tests. You could go outside
  121. and do the same for the rocks and plants. Pretty soon you would be able to draw
  122. conclusions about which things are similar to each other and which differ from
  123. each other. If you have a curious nature, your next questions should begin with
  124. "Why...?" and "How...?" Why does wood burn, but pottery not? How can I predict
  125. whether other things will or won't burn? Why are some things heavier or harder
  126. than others? Why don't these things dissolve in water? How does acid change a
  127. paper clip? Chemistry has its roots in just this kind of speculation about the
  128. nature of simple things. In early times, people wondered about air, and water,
  129. and rocks, and fire, and looked for magical and mystical answers to questions
  130. about the physical world around them. Once the importance of systematic
  131. observation was recognized, the foundation was laid for chemistry and all the
  132. sciences.
  133.  
  134. Happy Mangling!
  135.  
  136. - Michael H. Dickman